﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include <memory>
#include "GmFamilyService.h"

namespace gcmp
{
    class IDocument;
}

namespace gfam
{
    class IFamilyDatabase;

    /// \brief 族数据库工具类
    class GM_FAMILY_SERVICE_EXPORT FamilyDatabaseUtil
    {
    public:
        /// \brief 创建族数据库
        /// 
        /// \param pDoc 文档指针
        /// \return 新创建的族数据库
        static std::shared_ptr<IFamilyDatabase> CreateFamilyDatabase(const gcmp::IDocument* pDoc);
    };
}